package org.aceor.mddal.common.sqlparser.result;

import com.google.common.base.Objects;
import org.aceor.mddal.common.sqlparser.result.context.ConditionContext;
import org.aceor.mddal.common.sqlparser.result.context.MergeContext;
import org.aceor.mddal.common.sqlparser.result.context.RouteContext;
import org.aceor.mddal.common.sqlparser.result.context.ShardingContext;

/**
 * Created by lxue on 16/3/23.
 */
public class SQLParsedResult {
    public MergeContext mergeContext = new MergeContext();
    public ConditionContext conditionContext = new ConditionContext();
    public RouteContext routeContext = new RouteContext();
    public ShardingContext shardingContext = new ShardingContext();

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("MergeContext", mergeContext.toString())
                .addValue("\n")
                .add("ConditionContext", conditionContext.toString())
                .addValue("\n")
                .add("RouteContext", routeContext.toString())
                .addValue("\n")
                .add("ShardingContext", shardingContext.toString())
                .toString();
    }
}
